package com.yyy.dm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yyy.dm.item.IndexNavHotItemsDTO;
import com.yyy.dm.item.DmItem;
import com.yyy.dm.item.ItemFloorDTO;
import com.yyy.dm.item.ItemTypeRankingDTO;

import java.util.List;

public interface ItemMapper extends BaseMapper<DmItem> {

    List<IndexNavHotItemsDTO> findHotItem();
    List<IndexNavHotItemsDTO> findTodayHotItem();
    List<IndexNavHotItemsDTO> findToSaleItem();
    List<ItemTypeRankingDTO> findRankingByItemType(Long itemTypeId);
    List<ItemFloorDTO> findItemByItemType1IdOrItemType2Id(Long itemTypeId);

}
